package com.idanchuang.component.mq.amqp;

import com.idanchuang.component.mq.amqp.pressure.PressureAfterReceivePostProcessor;
import com.idanchuang.component.mq.amqp.pressure.PressureBeforePublishPostProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yjy
 * @date 2019/11/8 11:12
 **/
@Configuration
public class ComponentAmqpPressureAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public PressureBeforePublishPostProcessor pressureBeforePublishPostProcessor() {
        return new PressureBeforePublishPostProcessor();
    }

    @Bean
    @ConditionalOnMissingBean
    public PressureAfterReceivePostProcessor pressureAfterReceivePostProcessor() {
        return new PressureAfterReceivePostProcessor();
    }

}
